package com.jiayuge.server.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 功能: 测试接口
 *
 * @Program: yeb
 * @Date: 2021-11-16 17:40
 * @Author Jiayu.Yang
 */
@RestController
@Api(tags = "测试接口HelloController")
public class HelloController {

    @GetMapping("/hello")
    @ApiOperation(value = "测试")
    public String hello(){
        return "Hello world!";
    }

    @GetMapping("/employee/basic/hello")
    @ApiOperation(value = "测试url的访问权限拦截")
    public String hello1(){
        return "/employee/basic/hello";
    }

    @GetMapping("/employee/advanced/hello")
    @ApiOperation(value = "测试url的访问权限拦截")
    public String hello2(){
        return "/employee/advanced/hello";
    }

}
